package ru.amse.tsyganov.jumleditor.graphicaleditor;

import ru.amse.tsyganov.jumleditor.model.ActionState;
import ru.amse.tsyganov.jumleditor.model.State;
import ru.amse.tsyganov.jumleditor.view.representation.ActionStateView;
import ru.amse.tsyganov.jumleditor.view.representation.StateView;

/*package*/ class AddActionStateMode extends AddStateMode {

	public AddActionStateMode(GraphicalEditor graphicalEditor) {
		super(graphicalEditor);
	}

	@Override
	public StateView<? extends State> createNewState() {
		ActionState state = new ActionState();
		StateView<? extends State> newStateView = 
			new ActionStateView<ActionState>(state, getEditor().getActivityGraphView());
		
		return newStateView;
	}
}
